package com.changgou;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * canal的客户端 目的:监听服务端的数据的变化
 *
 * @author mario
 * @version 1.0
 * @since 1.0
 */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@EnableEurekaClient
/** EnableFeignClients 启用canal */
@EnableFeignClients(basePackages = {"com.changgou.content.feign", "com.changgou.item.feign"})
public class CanalApplication {
  public static void main(String[] args) {
    SpringApplication.run(CanalApplication.class, args);
  }
}
